package com.cass.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * 学生明细表实体类
 * @author wangyou
 * @Modified by:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(name = "studentScore", description = "学生明细表")
public class StudentScore implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Schema(name = "id", description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 语文
     */
    @Schema(name ="language", description = "语文")
    private Integer language;
    /**
     * 数学
     */
    @Schema(name = "mathematics", description = "数学")
    private Integer mathematics;
    /**
     * 英语
     */
    @Schema(name = "English", description = "英语")
    private Integer English;
    /**
     * 计算机
     */
    @Schema(name = "computer", description = "计算机")
    private Integer computer;
    /**
     * 学号
     */
    @Schema(name = "studentNumber", description = "学号")
    private String  studentNumber;
    /**
     * 创建时间
     */
    @Schema(name = "creationTime", description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    /**
     * 更新时间
     */
    @Schema(name = "turnoverTime", description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime turnoverTime;
}
